package com.bort.system.service;

import com.bort.system.info.CheckOutResult;
import com.bort.system.info.DeskInfo;
import com.bort.system.model.Cart;
import com.bort.system.model.Goods;
import com.bort.system.model.TOrder;
import com.bort.system.utils.Result;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface AsyncService {

    void closeDeskAsync(DeskInfo data, Date endTime, BigDecimal amount,BigDecimal pay,Integer userId);

    CheckOutResult checkOut(Date startTime, Date endTime, BigDecimal price);

    Integer createOrder(Integer deskId, BigDecimal pay, Date now, List<Cart> carts,Integer userId);

    Result sale(Goods indexGoods, String orderNo, int num,Integer userId);

    void putInCart(Goods indexGoods, String orderNo, int num, int deskId, String playerName,Integer userId);

    void removeCart(Cart cart);

    void saveOrder(TOrder order);
}